package com.qiyu.tech.tcc.starter.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * @author linhao
 * @date created in 4:23 下午 2020/11/4
 */
@TableName(value = "t_stock_freeze")
public class StockFreeze {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer goodId;

    private Integer userId;

    private Integer stock;

    /**
     * 是否有效  0 锁定中 1 已解除 2 锁定失败
     */
    private Integer valid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }
}
